<div class="container">
	
    <div class="page-title ui-widget-content ui-corner-all head">
	    <div class="headLeft">
        	<h1 class="icon-category">Category Manager</h1>
        </div>
    	<div class="headRight">
       		<div id="toolbar" class="toolbar-list">
            	<ul>
                    <li id="toolbar-new" class="button">
                    	<a class="toolbar"  href="javascript:void(0)" id="add"><span class="icon-32-new"></span>&nbsp;&nbsp;New</a>
                    </li>
                    <li id="toolbar-edit" class="button">
                    	<a class="toolbar" href="#"><span class="icon-32-edit"></span>&nbsp;&nbsp;Edit</a>
                    </li>
                    
                     <li id="toolbar-trash" class="button">
						<a class="toolbar" href="#"><span class="icon-32-trash"></span>&nbsp;&nbsp;Trash</a>
					</li>
					<li id="toolbar-publish" class="button">
	                    <a class="toolbar" href="#"><span class="icon-32-publish"></span>&nbsp;&nbsp;Publish</a>
            	     </li>
                </ul>
            </div>
        </div>
    </div>


    <div class="hastable">
    	<form accept-charset="utf-8" method="post" name="myform" id="formlist" class="pager-form" action="http://raovatbonmua.com/cp/crawler/deleteList"><input type="hidden" id="status" name="status">
        <table>
            <thead>
                <tr>
                    <th style="border-left:0px;"><input type="checkbox" class="submit" onclick="this.value=check(this.form['id[]'])" value="check_none"></th>
                    <th>Name</th>
                       
                    <th width="40">Region</th>                        
                    <th width="40">orderNo</th>
                    <th width="100">Action</th>
                </tr>
            </thead>
            <tbody>
            <?php if(count($getData)){ 
				foreach($getData as $key=>$item){
			?>
	            <tr>
                    <td class="center" style="border-left:0px;">
                    	<input type="checkbox" value="<?php echo $item['id']; ?>" name="id[]" class="checkbox">
                    </td>
                    <td><?php echo $item['name']; ?></td>
                    
                    <td style="text-align:center"><?php echo $item['region']; ?></td>
                    <td style="text-align:center"><?php echo $item['orderNo']; ?></td> 
                    <td>
                        <a class="btn_no_text btn ui-state-default ui-corner-all edit" href="javascript:void(0)" datafld="<?php echo $item['id'] ?>">
                        <span class="ui-icon ui-icon-pencil"></span></a>
                        <a class="btn_no_text btn ui-state-default ui-corner-all delete" href="javascript:void(0)" datafld="<?php echo $item['id'] ?>"><span class="ui-icon ui-icon-trash"></span></a>
                    </td>
                </tr>
             <?php } } ?>
                </tbody>
        </table>
        
        </form>
    </div>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){
	jQuery('#add').click(function(){
		jQuery.ajax({
			type: "GET",
			dataType: "html",
			url: "<?php echo base_url('admin/provinder/add'); ?>",
			data: "",
			success: function(data){	
				jQuery('#submitDialog').html(data);
				jQuery('#submitDialog').dialog('open');
				//jQuery('.ui-dialog'
				return false;		
			}
		});			
	});
	jQuery('.edit').click(function(){
		var datafld = jQuery(this).attr('datafld');
		jQuery.ajax({
			type: "GET",
			dataType: "html",
			url: "<?php echo base_url('admin/provinder/edit'); ?>/"+datafld,
			data: "",
			success: function(data){	
				jQuery('#submitDialog').html(data);
				jQuery('#submitDialog').dialog('open');
				//jQuery('.ui-dialog'
				return false;		
			}
		});			
	});
});
</script>